HGame Mini 2025 WriteUp

AI

What's in the model

用 torch 一直加载不上,不管了 用在线工具netron.app

按照题目要求构造Vidar{input_<32x10>_hello_<16x32>_ReLU_AI_<8x16>_Sigmoid_output <4x8>}

Crypto

Caesar

偏移量递增的凯撒密码
VIDAR{Caes4r_is_c00l}

初见RSA

送的

python
 1from Crypto.Util.number import long_to_bytes
 2
 3n = 6438564200642544883963516466995842809822227901556621973469309713770175274106718270712739193879588101321727771333715117505096108552049741175863094464807711
 4p = 65099752915500719336967562662061593189532612028630922599597746085982133225699
 5q = 98903051275782591251093656404330537548659916532422455319036265889066830429589
 6e = 65537
 7enc = 4775440827685472524284778345015273189583577772326930132109883500567360503635434106528916819948657772713245201437682642245414983154863864679871711587110510
 8
 9phi_n = (p - 1) * (q - 1)
10d = pow(e, -1, phi)
11m = pow(enc, d, n)
12print(long_to_bytes(m))

Misc

Weird suffix

观察三个文件的文件头可知分别为png、jpg 和 bmp
拼接后得到VIDAR{FunNy_su4fix}

Hidden zip

将图片作为 zip 解压得到 flag.txt,内容为VDRWwYufn_e!IA{o~0_idM!}
猜测栅栏密码

Web

Do you really understand http


按题目要求该 header 就行